<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="${packageName}.<#if (entity.moduleName != "")>${entity.moduleName}.</#if>dao.${entity.entityName}Dao">

    <!-- 查询字段 -->
    <sql id="selectFields">${entity.primaryKey.tableFieldName}, <#list entity.manyToOnes as manyToOne>${manyToOne.columnName}, </#list><#list entity.fields as field><#if (field.keyType != "ForeignKey")>${field.tableFieldName}<#if (field_has_next)>, </#if></#if></#list></sql>

</mapper>